package demo.deprecated;


 //过时API示例。

public class LegacyApi {
    @Deprecated
    public void oldMethod() {
        System.out.println("LegacyApi.oldMethod() is deprecated");
    }
}

